function checkSubmit(){
    var docName = document.getElementById("docName");
    var docPhone = document.getElementById("docPhone");
    var defaultPwd = document.getElementById("defaultPwd");
    var docPhoto = document.getElementById("docPhoto");
    var docMainType = document.getElementById("docMainType");
    var docAccept = document.getElementById("docAccept");

    var docMainTypeValue = docMainType.options[docMainType.selectedIndex].value;
    var docAcceptValue = docAccept.options[docAccept.selectedIndex].value;
    const testName = /^[\u4e00-\u9fa5]+$/;
    const testPhone = /^1[3-9]\d{9}$/;
    if(docName.value == "" || docName.value.length < 2 || !testName.test(docName.value.replace(/\s+/g, ''))){
        alert("姓名为长度大于1的汉字！");
        return false;
    }else if(docPhone.value == "" || !testPhone.test(docPhone.value.replace(/\s+/g, ''))){
        alert("请输入正确的手机号！");
        return false;
    }else if(defaultPwd.value == "" || defaultPwd.value.length < 8){
        alert("请输入至少8位的密码！");
        return false;
    }else if(docPhoto.value == ""){
        alert("请选择文件！");
        return false;
    }else if(docMainTypeValue == 'none'){
        alert("请选择主执业类别！");
        return false;
    }else if(docAcceptValue == 'none'){
        alert("请选择是否直接开始接诊！");
        return false;
    }else{
        return true;
    }
}